﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using WalkingTec.Mvvm.Core;
using System.Text.Json.Serialization;
using TyMES.Model;

namespace TyMES.Model.GetData
{
    /// <summary>
    /// 工厂生产数据模板
    /// </summary>
	[Table("T_ProductDataTemplates")]

    [Display(Name = "_Model.ProductDataTemplates")]
    public class ProductDataTemplates : TopBasePoco
    {
        [Display(Name = "_Model._ProductDataTemplates._addTime")]
        [Comment("添加时间")]
        public string AddTime { get; set; }
        [Display(Name = "_Model._ProductDataTemplates._addUserId")]
        [Comment("添加人id")]
        public string AddUserId { get; set; }
        [Display(Name = "_Model._ProductDataTemplates._addUserName")]
        [Comment("添加人名称")]
        public string AddUserName { get; set; }
        [Display(Name = "_Model._ProductDataTemplates._dataSource")]
        [Comment("数据源")]
        public string DataSource { get; set; }
        [Display(Name = "_Model._ProductDataTemplates._dataSourceCode")]
        [Comment("数据源类型")]
        public string DataSourceCode { get; set; }
        [Display(Name = "_Model._ProductDataTemplates._dataStatus")]
        [Comment("数据状态")]
        public string DataStatus { get; set; }
        [Display(Name = "_Model._ProductDataTemplates._editTime")]
        [Comment("编辑时间")]
        public string EditTime { get; set; }
        [Display(Name = "_Model._ProductDataTemplates._editUserId")]
        [Comment("编辑人id")]
        public string EditUserId { get; set; }
        [Display(Name = "_Model._ProductDataTemplates._editUserName")]
        [Comment("编辑人名称")]
        public string EditUserName { get; set; }
        [Display(Name = "_Model._ProductDataTemplates._enableStatus")]
        [Comment("启用状态")]
        public string EnableStatus { get; set; }
        [Display(Name = "_Model._ProductDataTemplates._equCode")]
        [Comment("设备编码")]
        public string EquCode { get; set; }
        [Display(Name = "_Model._ProductDataTemplates._equName")]
        [Comment("设备名称")]
        public string EquName { get; set; }
        [Display(Name = "_Model._ProductDataTemplates._factoryCode")]
        [Comment("工厂编码")]
        public string FactoryCode { get; set; }
        [Display(Name = "_Model._ProductDataTemplates._operationCode")]
        [Comment("工序编码")]
        public string OperationCode { get; set; }
        [Display(Name = "_Model._ProductDataTemplates._operationName")]
        [Comment("工序名称")]
        public string OperationName { get; set; }
        [Display(Name = "_Model._ProductDataTemplates._paramCode")]
        [Comment("设备数采参数编号")]
        public string ParamCode { get; set; }
        [Display(Name = "_Model._ProductDataTemplates._paramCodeKey")]
        [Comment("参数编码key")]
        [Required(ErrorMessage = "Validate.{0}required")]
        public string ParamCodeKey { get; set; }
        [Display(Name = "_Model._ProductDataTemplates._paramName")]
        [Comment("设备数采参数名称")]
        public string ParamName { get; set; }
        [Display(Name = "_Model._ProductDataTemplates._paramNameKey")]
        [Comment("参数名称key")]
        public string ParamNameKey { get; set; }
        [Display(Name = "_Model._ProductDataTemplates._paramRange1")]
        [Comment("上限值")]
        public string ParamRange1 { get; set; }
        [Display(Name = "_Model._ProductDataTemplates._paramRange2")]
        [Comment("下限值")]
        public string ParamRange2 { get; set; }
        [Display(Name = "_Model._ProductDataTemplates._paramUnit")]
        [Comment("参数单位")]
        public string ParamUnit { get; set; }
        [Display(Name = "_Model._ProductDataTemplates._paramValueKey")]
        [Comment("参数值的key")]
        public string ParamValueKey { get; set; }
        [Display(Name = "_Model._ProductDataTemplates._sort")]
        [Comment("排序编码")]
        public int? Sort { get; set; }
        [Display(Name = "_Model._ProductDataTemplates._standardValue")]
        [Comment("标准值")]
        public string StandardValue { get; set; }
        [Display(Name = "_Model._ProductDataTemplates._stationCode")]
        [Comment("工位编码")]
        public string StationCode { get; set; }
        [Display(Name = "_Model._ProductDataTemplates._templateCode")]
        [Comment("模板编码")]
        [Required(ErrorMessage = "Validate.{0}required")]
        public string TemplateCode { get; set; }
        [Display(Name = "_Model._ProductDataTemplates._uniqueCode")]
        [Comment("设备唯一编号")]
        public string UniqueCode { get; set; }

	}

}
